package com.zxl.openapi.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test2")
public class TestController {

    @GetMapping("/test1/{name}")
    public String test1(@PathVariable String name){

        return "郑老板和" + name + "去相亲的故事";

    }

    @GetMapping("/test2")
    public String test2(String name){

        return "嘻嘻嘻" + name + ".jpg";


    }


}
